|
|
|
|
|
|
|
Visual Basic's Integrated Development Environment (IDE), which is the interface of Visual Basic itself, contains a number of tools that you can use as you develop your applications. The IDE underwent a major overhaul between versions 4.0 and 5.0 of Visual Basic; however, the interface for Visual Basic 6.0 is much the same as its predecessor. In this appendix, you'll take a quick look around the interface and learn about some of its features. |
|
|
|
|
|
|
|
|
Understanding the Environment's Key Features |
|
|
|
|
|
|
|
|
Since version 5.0, Visual Basic has sported a Multiple Document Interface (MDI) environment. If you are unfamiliar with MDI, you can compare it to having multiple documents open in Microsoft Word. Each document is contained in a child window, which is, in turn, contained within the main parent window. As with other MDI applications, such as Word or Excel, you can choose to have the child document fill the whole window or have multiple windows visible simultaneously. |
|
|
|
|
| |
|
|
|
|
If you are not already using a big monitor (17 inches or larger) at high resolution, get one. You need a lot of screen space to use Visual Basic's interface most effectively. I recommend a screen resolution of 800×600 as a minimum, or 1024×768 if your video card (and eyes) can support it. |
|
|
|
|
|
|
|
|
|
|
You can edit more than one project in the same Visual Basic session. Therefore, you don't have to close one project in order to open and make changes to another. This capability is convenient if you are developing projects that interact with each other because you can save and compile all projects in a group with a single menu option. |
|
|
|
|
|
|
|
|
Another relatively new feature is dockable toolbars and windows. Now a window can be floating in the middle of the screen or docked along one of the edges. Dockable windows include the toolbars and windows with small title bars, such as the Toolbox. |
|
|
|
|
|
|
|
|
In addition to the window management enhancements, Visual Basic offers some useful tools to make code entry easier. Microsoft calls them Auto List Member and Auto Quick Info; you will call them fantastic. If you have trouble remembering, for example, MessageBox constants, control properties, or even the parameters to your own functions, the code editor assists you with completing the information automatically while you type. For example, as soon as you press the Spacebar after a MsgBox function call, you are presented with the parameters in a ToolTip-like format with a drop-down box of the available constants. |
|
|
|
|
| |
|
|
|
|
When you are presented with the drop-down box mentioned in the preceding paragraph, you don't have to use the mouse to select an item. Just keep typing (or use the arrow keys) until the list item you want is highlighted; then press the spacebar, comma (,), Enter, or Tab, and continue with your program. |
|
|
|
|
|
|
|